package com.fox0g.mapper;

import com.fox0g.pojo.Sharebike;
import com.fox0g.pojo.Tstate;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 86176
* @description 针对表【tstate(温度)】的数据库操作Mapper
* @createDate 2024-07-07 08:53:44
* @Entity com.fox0g.pojo.Tstate
*/

@Mapper
public interface TstateMapper extends BaseMapper<Tstate> {
    @Insert("insert into test.tstate(tstate.wd,tstate.creat_time)" +
            " values (#{wd},#{creatTime})")
    int insert(Tstate tstate);


    @Select("select wd, creat_time from test.tstate order by id desc ")
    List<Tstate> tAllData();
}




